/* eslint-disable class-methods-use-this */
import {
  get,
} from '@/lin/plugins/axios'

// 我们通过 class 这样的语法糖使模型这个概念更加具象化，其优点：耦合性低、可维护性。
class Rank {
  async getStoreRank(info) {
    const res = await get('v1/rank/store', info)
    return res
  }

  async getStoreUserRank(info) {
    const res = await get('v1/rank/store-user', info)
    return res
  }

  async getTeamRank(info) {
    const res = await get('v1/rank/team', info)
    return res
  }

  async getTeamUserRank(info) {
    const res = await get('v1/rank/team-user', info)
    return res
  }
}

export default new Rank()
